﻿package top.yangyitao.util;

import top.yangyitao.model.RegisterCode;

public class ResetPWDEmailUtil {
	public static void sendResetPWDEmail(String email,RegisterCode registerCode) throws Exception {
		String url = "http://www.yangyitao.top/FiveChess/";
		String action = "emailResetPWD.action?";
		url += action+"userName="+registerCode.getUserName()+"&code="+registerCode.getRegisterCode();
		String content ="您好！<br>以下为您正在申请重置绑定于此邮箱并在yangyitao.top注册的账号的账号密码，请点击该链接进行密码重置...<br><hr><a href='"+url+"'>验证链接</a><br><hr>如果您并未请求重置密码，请不要点击它!<br>谢谢!<br>by yangyitao.top";
		EmailManager.sendEmail(email, "重置验证", content);
	}
}
